<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateGoodsDetailsTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('goods_details', function (Blueprint $table) {
            $table->increments('id')->comment('主键id');
            $table->integer('goodsid')->comment('商品id');
            $table->string('detailname')->comment('商品名称');
            $table->text('describe')->comment('商品描述');
            $table->integer('orders')->default('0')->comment('销量');
            $table->string('CPU')->comment('cpu型号');
            $table->string('system')->comment('操作系统');
            $table->string('color_white')->comment('颜色1');
            $table->string('color_pink')->comment('颜色2');
            $table->string('color_black')->comment('颜色3');
            $table->string('color_gold')->comment('颜色4');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::drop('goods_details');
    }
}
